package com.ed100.sass.patter.chain;

public class MyHandler extends AbstractHandler implements Handler{

	private String name;
	
	public MyHandler(String name) {
		this.name = name;
	}
	
	@Override
	public void operater() {
		System.out.println(name + " handler deal");
		
		if(getHandler() != null) {
			getHandler().operater();
		}
	}

}
